import {
  jsRequest
} from '../request'

export function getCategory() {
  return jsRequest.get({
    url: '/category'
  })
}

export function getServiceList(page = 1, type = '', category_id = '') {
  return jsRequest.get({
    url: '/service/list',
    data: {
      page,
      count: 10,
      type,
      category_id
    }
  })
}

// 服务详情页
export function getDetailsData(id) {
  return jsRequest.get({
    url: `/service/${id}`
  })
}